﻿@model IEnumerable<store.Product>
@foreach (var item in Model)
{
    <div class="section">
        <div class="products-container portrait featured">
            <div class="product">
                <a href="@Url.Action("Detail", "Product", new { id = item.ProductID })" class="product-link clearfix">
                    <div class="product-thumbnail">
                        @if (item.Picture.Length > 1)
                        {
                            var listImg = item.Picture.Split(',');
                            <img class="img-thumbnail" src="~/Files/@listImg[1]" alt="@item.ProductName" title="@item.ProductName"/>
                        }
                        <div class="caption bottom-left">@String.Format("{0:0,000}", @item.UnitPrice)</div>
                    </div>
                </a>
                <div class="product-info clearfix">
                    <h3 class="title">@Html.ActionLink(item.ProductName, "Detail", "Product", new { id = item.ProductID }, null)</h3>
                </div>
            </div>
        </div>
    </div>   
}
